import request from '../index';

const chargeUrl = '/charge-server';
const orderUrl = '/order-server';

// app查询实时订单充电数据
export const getChargeRecordData = (params: any, flag?: boolean) => {
  return request({
    url: `${chargeUrl}/chargeData/getChargeRecordData`,
    params: params,
    noLoading: flag || false,
  });
};

// 停止充电接口
export const queryStopCharge = (params: any) => {
  return request({
    url: `${chargeUrl}/cmd/query_stop_charge`,
    params: params,
  });
};

// 查询订单状态
export const getOrderStatus = (params: any) => {
  return request({
    url: `${orderUrl}/appCurrentOrder/getOrderStatus`,
    params: params,
  });
};

